package org.xteam.box2text.old;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


public class ROperator extends Operator {
	
	public ROperator(Map<String, Integer> options, List<Box> arguments) {
		super(options, arguments);
	}

	public ROperator(List<Box> arguments) {
		super(arguments);
	}

	public Box removeVertical(boolean removeRow) {
		if (removeRow) {
			return new HOperator(options, removeVertical(arguments, true));
		}
		return new ROperator(options, removeVertical(arguments, true));
	}

	@Override
	public List<Box> normalizeGroups(boolean splice) {
		return Arrays.asList(new Box[] { new ROperator(options, normalizeChildren(true)) });
	}

}
